﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="He.Web.manage.category.edit" %>

<%@ Register Src="../_uc/head_edit.ascx" TagPrefix="uc" TagName="head_edit" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>修改类别</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_edit runat="server" ID="uchead_edit" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href='javascript:history.go(-1)'>返回列表</a></span> <b>您当前的位置：首页
            &gt;
            <%=channel.title %>
            &gt;修改类别</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                修改类别
            </th>
        </tr>
        <tr>
            <td width="25%" align="right">
                所属父类别：
            </td>
            <td width="75%">
                <asp:DropDownList ID="ddlPid" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="right">
                类别名称：
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="input required" size="30" MaxLength="50"
                    HintTitle="类别名称" HintInfo="请填写该类别的名称，至少1个字符，小于50个字符。"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                二级名称：
            </td>
            <td>
                <asp:TextBox ID="txtSubTitle" runat="server" CssClass="input" size="30" MaxLength="50"
                    HintTitle="类别二级名称" HintInfo="请填写该类别的名称，至少1个字符，小于50个字符。"></asp:TextBox>
            </td>
        </tr>
        <%if (channel.show_category_img == 1)
          { %>
        <tr id="trReview" <%=ShowReview(imgurl) %>>
            <td align="right">
                图片预览：
            </td>
            <td>
                <img id="imgReview" src="<%=imgurl %>" class="myReview" alt="图片预览" />
            </td>
        </tr>
        <tr>
            <td align="right">
                图片：
            </td>
            <td>
                <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w380 left"></asp:TextBox>
                <a href="javascript:void(0);" class="files">
                    <input type="file" id="FileUpload" name="FileUpload" onchange="SingleUpload('txtImgUrl','FileUpload',true)" /></a>
                <span class="uploading">正在上传，请稍候...</span>
            </td>
        </tr>
        <%} %>
        <tr>
            <td align="right">
                链接地址：
            </td>
            <td>
                <asp:TextBox ID="txtLinkUrl" runat="server" CssClass="input w380" MaxLength="250"
                    HintTitle="链接地址" HintInfo="请填写该分类的链接地址，小于250个字符。"></asp:TextBox><br />
                可不填，若跳转到其他站点，请以http://开头，若跳转到本站链接，请直接填写页面名，如：plug-feedback.aspx
            </td>
        </tr>
        <tr>
            <td align="right">
                排序：
            </td>
            <td>
                <asp:TextBox ID="txtSortId" CssClass="input required number" size="10" runat="server"
                    MaxLength="9" HintTitle="类别分类排序" HintInfo="纯数字，数字越少越向前。"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="3" align="left">
                SEO信息设置
            </th>
        </tr>
        <tr>
            <td align="right">
                SEO关键字：
                <br />
                <span class="gray">[选填]不超过100个字符</span>
            </td>
            <td align="left">
                <asp:TextBox ID="txtSeoKeywords" runat="server" CssClass="input w380" MaxLength="250"
                    HintTitle="内容简介" HintInfo="用于搜索引擎，控制在100个字数内。"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                SEO描述：
                <br />
                <span class="gray">[选填]不超过200个字符</span>
            </td>
            <td align="left">
                <asp:TextBox ID="txtSeoDescription" runat="server" CssClass="textarea wh380" MaxLength="250"
                    HintTitle="内容简介" HintInfo="用于搜索引擎，控制在200个字数内。" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确 认 保 存" CssClass="submit" OnClick="btnSave_Click" />
    </div>
    </form>
</body>
</html>
